package com.m4f.business.model.request;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

public class Vote {
	
	@NotNull(message="Company identifier blank")
	private Long companyId;
	
	@NotNull(message="Mail blank")
	@Pattern(regexp = "^[\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4}$", message="Bad mail")
	private String email;
	
	
	public void setEmail(String email) {
		this.email = email;
	}
	public String getEmail() {
		return email;
	}
	public void setCompanyId(Long companyId) {
		this.companyId = companyId;
	}
	public Long getCompanyId() {
		return companyId;
	}
	
	
}